
package com.yuhanginfo.modules.sys.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 询价Entity
 * @author yangs
 * @version 2017-11-23
 */
public class EnquiryGoodsReply extends DataEntity<EnquiryGoodsReply> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// code
	private String goodsName;		// goods_name
	private String partsCode;		// parts_code
	private String producer;		// producer
	private String money;		// money
	private Date receiveTime;		// receive_time
	private String photos;		// photos
	private Integer num;
	private String replyPhotos;
    private Integer enquiryGoodsId;
    
	public EnquiryGoodsReply() {
		super();
	}

	public EnquiryGoodsReply(String id){
		super(id);
	}
    
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public String getReplyPhotos() {
		return replyPhotos;
	}

	public void setReplyPhotos(String replyPhotos) {
		this.replyPhotos = replyPhotos;
	}



	@Length(min=0, max=50, message="code长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=100, message="goods_name长度必须介于 0 和 100 之间")
	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	
	@Length(min=0, max=50, message="parts_code长度必须介于 0 和 50 之间")
	public String getPartsCode() {
		return partsCode;
	}

	public void setPartsCode(String partsCode) {
		this.partsCode = partsCode;
	}
	
	@Length(min=0, max=255, message="producer长度必须介于 0 和 255 之间")
	public String getProducer() {
		return producer;
	}

	public void setProducer(String producer) {
		this.producer = producer;
	}
	
	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="receive_time不能为空")
	public Date getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}
	
	@Length(min=0, max=500, message="photos长度必须介于 0 和 500 之间")
	public String getPhotos() {
		return photos;
	}

	public void setPhotos(String photos) {
		this.photos = photos;
	}

	public Integer getEnquiryGoodsId() {
		return enquiryGoodsId;
	}

	public void setEnquiryGoodsId(Integer enquiryGoodsId) {
		this.enquiryGoodsId = enquiryGoodsId;
	}
	
}